package com.haixiaoke.saas.repository.service.impl;

import com.haixiaoke.saas.repository.mapper.CommunityHouseUserMapper;
import com.haixiaoke.saas.repository.pojo.CommunityHouseUser;
import com.haixiaoke.saas.repository.service.ICommunityHouseUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author panda
 * @Date 2023/5/19
 **/
@Service
public class CommunityHouseUserServiceImpl implements ICommunityHouseUserService {
    @Autowired
    private CommunityHouseUserMapper communityHouseUserMapper;
    @Override
    public String[] selectCommunityHouseUserByMobile(String reservationPhone) {
        return communityHouseUserMapper.selectCommunityHouseUserByMobile(reservationPhone);
    }

    @Override
    public int updateCommunityHouseUserStatus(String houseId) {
        return communityHouseUserMapper.updateCommunityHouseUserStatus(houseId);
    }

    @Override
    public List<CommunityHouseUser> selectCommunityHouseUserByHouseId(String houseId) {
        return communityHouseUserMapper.selectCommunityHouseUserByHouseId(houseId);
    }

    @Override
    public List<CommunityHouseUser> selectList(CommunityHouseUser communityHouseUser) {
        return communityHouseUserMapper.selectList(communityHouseUser);
    }

    @Override
    public List<CommunityHouseUser> selectCommunityHouseUserByOrderId(String orderId) {
        return communityHouseUserMapper.selectCommunityHouseUserByOrderId(orderId);
    }
}
